/**
 * jims
 */
package com.jims.master.modules.patient.RecordUpload.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 病历报告表Entity
 * @author jct
 * @version 2017-12-08
 */
public class RecordUpload extends DataEntity<RecordUpload> {
	
	private static final long serialVersionUID = 1L;
	private String idcard;		// 患者id
	private String imgUrl;		// 图片路径
	private String medicalType;		// 病历类型：0:住院病历、1:门诊病历、2：体检报告、3.：其他
	private String describe;		// 病人描述
	private Date visitDate;		// 病历、体检日期
	private String orgName;		// 就诊机构机构
	private String isPublic;

	public String getIsPublic() {
		return isPublic;
	}

	public void setIsPublic(String isPublic) {
		this.isPublic = isPublic;
	}

	public RecordUpload() {
		super();
	}

	public RecordUpload(String id){
		super(id);
	}

	@Length(min=1, max=64, message="患者id长度必须介于 1 和 64 之间")
	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	
	@Length(min=0, max=1024, message="图片路径长度必须介于 0 和 1024 之间")
	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getMedicalType() {
		return medicalType;
	}

	public void setMedicalType(String medicalType) {
		this.medicalType = medicalType;
	}
	
	@Length(min=0, max=128, message="病人描述长度必须介于 0 和 128 之间")
	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getVisitDate() {
		return visitDate;
	}

	public void setVisitDate(Date visitDate) {
		this.visitDate = visitDate;
	}
	
	@Length(min=0, max=64, message="就诊机构机构长度必须介于 0 和 64 之间")
	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}
	
}